//
//  StateModel.h
//  uniquelove
//
//  Created by ibokan on 14-12-17.
//  Copyright (c) 2014年 ibokan. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    StateTypeMe = 0, // 自己发的
    StateTypeOther   // 别人发的
} StateType;


@interface StateModel : NSObject

/**
 *  时间
 */
@property (nonatomic, copy) NSString *time;
/**
 *  头像
 */
@property (nonatomic, copy) NSData *imageData;

/*
 *  姓名
 */
@property (strong, nonatomic) NSString *name;

/**
 *  聊天内容
 */
@property (nonatomic, copy) NSString *text;

@property (nonatomic, assign) StateType type;

+ (instancetype)stateWithDict:(NSDictionary *)dict;
- (instancetype)initWithDict:(NSDictionary *)dict;
@end
